Multiway data analysis